package com.charlotte.study.gupao.observer.gper;

/**
 * @author junjie.ding
 * @date 2020/3/24
 */
public class Test {

    public static void main(String[] args) {
        Gper gper = Gper.getInstance();
        Question question = new Question("jerry", "问题内容。。。。。。");

        Teacher tom = new Teacher("Tom");
        gper.addObserver(tom);

        gper.publishQuestion(question);
    }
}
